package ooday02;

public class PersonTestHomework {
    public static void main(String[] args) {
        StudentHomework ww = new StudentHomework("ww", 18, "中国", "jsd2408", "001");
        ww.sayhi();
        ww.eat();
        ww.sleep();
        ww.study();


        DoctorHomework ee = new DoctorHomework("ee", 60, "医院", "医生");
        ee.eat();
        ee.sleep();
        ee.sayhi();
        ee.cut();


        TeacherHomework rr = new TeacherHomework("rr", 50, "学校", "800000000000");
        rr.eat();
        rr.sayhi();
        rr.teach();
        rr.sleep();


    }
}
